_init: function(parentActor) {
this.parent({ shellReactive: true,
styleClass: 'login-dialog',
- parentActor: parentActor
- });
+ parentActor: parentActor,
+ shouldFade: false });
this.connect('destroy',
Lang.bind(this, this._onDestroy));
this.connect('opened',
_init: function(params) {
params = Params.parse(params, { shellReactive: false,
styleClass: null,
- parentActor: Main.uiGroup
- });
+ parentActor: Main.uiGroup,
+ shouldFadeIn: true });
this.state = State.CLOSED;
this._hasModal = false;
this._shellReactive = params.shellReactive;
+ this._shouldFadeIn = params.shouldFadeIn;
this._group = new St.Widget({ visible: false,
x: 0,
this._group.show();
Tweener.addTween(this._group,
{ opacity: 255,
- time: OPEN_AND_CLOSE_TIME,
+ time: this._shouldFadeIn ? OPEN_AND_CLOSE_TIME : 0,
transition: 'easeOutQuad',
onComplete: Lang.bind(this,
function() {